import layout from '@/layout/index.vue'
export const permission = [
	{
		path: '/permission',
		component: layout,
		redirect: 'noRedirect',
		alwaysShow: true, // 将始终显示根菜单
		name: 'permission',
		meta: {
			title: '权限',
			icon: 'iconfont icon-suo'
		},
		children: [
			{
				path: '/permission/page',
				name: 'page',
				component: () => import('@/views/permission/page/index.vue'),
				meta: {
					title: '页面权限',
					roles: ['page', 'admin'],
					keepAlive: false
				}
			},
			{
				path: '/permission/element',
				name: 'element',
				component: () => import('@/views/permission/element/index.vue'),
				meta: {
					title: '元素权限',
					roles: ['element', 'admin', 'editor'],
					keepAlive: false
				}
			},
			{
				path: '/permission/role',
				name: 'role',
				component: () => import('@/views/permission/role/index.vue'),
				meta: {
					title: '角色权限',
					roles: ['role', 'admin', 'editor'],
					keepAlive: false
				}
			}
		]
	}
]